package com.lwm.base;

/**
 * @author liweimin
 * @date 2020/9/24 9:24
 * @description 编译时异常，运行时异常 Error------------>虚拟机抛出 OutOfMemory
 * Exception
 */
public class MyException extends Exception {
    @Override
    public String toString() {
        return "MyException{" +
                "detail=" + detail +
                '}';
    }

    //传递数字>10
    private int detail;
    public MyException(String message){
        super(message);
    }
}
